<?php
class Order extends Controller{

	function __construct(){
		parent::__construct();

	
	}
	function index()
	{ 		
			$sql= new sql();
			
                        if(@$_POST['continue'])
                        {
                             $this->view->hiddenData['salutation']=@$_POST['salutation'];
                             $this->view->hiddenData['fname']=@$_POST['fname'];
                             $this->view->hiddenData['lname']=@$_POST['lname'];
                             $this->view->hiddenData['email']=@$_POST['email'];
                             $this->view->hiddenData['zipcode']=@$_POST['zipcode'];
                             $this->view->hiddenData['address']=@$_POST['address'];
                             $this->view->hiddenData['phone']=@$_POST['phone'];
                             
                              $this->view->plan=@$_POST['plan'];
                               $this->view->price=str_replace("%24", "$", @$_POST['price']);
                        }
                        
                       
                       
                        if(@$_POST['steps'])
                        {
                            $this->view->step=@$_POST['steps']+1;
                             $this->view->plan=urlencode(@$_POST['plan']);
                               $this->view->price=str_replace("%24", "$", @$_POST['price']);
                                $this->view->url=URL."order/?price=".$this->view->price."&plan=".$this->view->plan."&step=".$this->view->step;
                        }
                        else
                        {
                             $this->view->step=2;
                              $this->view->plan=GET('plan');
                               $this->view->price=str_replace("%24", "$", GET('price'));
                               $this->view->url=URL."order/?price=".str_replace("%24", "$", GET('price'))."&plan=".GET('plan')."&step=2";
                        }
       
			$this->view->render('order');
        }
	
}

?>